package com.budwk.app.sqfwV2.enums.enterpriseWarrantyServe;

import lombok.Getter;

/**
 * 大营路文件对应枚举
 */
@Getter
public enum EnterpriseDetpEnum {
    QGXJ("1", "区工信局"),
    QFGJ("2", "区发改局"),
    QRSJ("3", "区人社局"),
    QKJJ("4", "区科技局"),
    QZJJ("5", "区住建局"),
    QCZJ("6", "区财政局"),
    QSWJ("7", "区税务分局"),
    QNYNCJ("8", "区农业农村局"),
    QZRZYJ("9", "区自然资源局"),
    QJRB("10", "区金融办"),
    QNYJ("11", "区能源局"),
    QSCJDGL("12", "区市场监督管理"),
    QT("13", "其他"),
    ;
    private final String code;
    private final String name;


    EnterpriseDetpEnum(String code, String name) {
        this.code = code;
        this.name = name;

    }

    public static EnterpriseDetpEnum getEnterpriseWarrantyServeFileByCode(String code) {
        for (EnterpriseDetpEnum o : EnterpriseDetpEnum.values()) {
            if (o.getCode().equals(code)) {
                return o;
            }
        }
        return null;
    }

}
